package demo1;

public class Test {

    public static void main(String[] args) {
        //接口不可以进行实例化
//        IShape iShape=new IShape();
    }


    public static void main1(String[] args) {
        Cycle cycle=new Cycle();
        Flower flower=new Flower();
        Shape[] shapes={cycle,flower,cycle,cycle,flower};
        for (Shape shape:shapes) {
            shape.draw();
        }
    }
}
